<?php
/**
 * Created by PhpStorm.
 * User: 65736
 * Date: 2019/3/5 0005
 * Time: 21:09
 */

namespace app\common\widget;


class WidgetConst
{
    //--------------------------------宽度常量, 基于Bootstrap的css:col-*-* -------------------------------------//
    const colxs1 = "col-xs-1";
    const colxs2 = "col-xs-2";
    const colxs3 = "col-xs-3";
    const colxs4 = "col-xs-4";
    const colxs5 = "col-xs-5";
    const colxs6 = "col-xs-6";
    const colxs7 = "col-xs-7";
    const colxs8 = "col-xs-8";
    const colxs9 = "col-xs-9";
    const colxs10 = "col-xs-10";
    const colxs11 = "col-xs-11";
    const colxs12 = "col-xs-12";
    const colsm1 = "col-sm-1";
    const colsm2 = "col-sm-2";
    const colsm3 = "col-sm-3";
    const colsm4 = "col-sm-4";
    const colsm5 = "col-sm-5";
    const colsm6 = "col-sm-6";
    const colsm7 = "col-sm-7";
    const colsm8 = "col-sm-8";
    const colsm9 = "col-sm-9";
    const colsm10 = "col-sm-10";
    const colsm11 = "col-sm-11";
    const colsm12 = "col-sm-12";
    const colmd1 = "col-md-1";
    const colmd2 = "col-md-2";
    const colmd3 = "col-md-3";
    const colmd4 = "col-md-4";
    const colmd5 = "col-md-5";
    const colmd6 = "col-md-6";
    const colmd7 = "col-md-7";
    const colmd8 = "col-md-8";
    const colmd9 = "col-md-9";
    const colmd10 = "col-md-10";
    const colmd11 = "col-md-11";
    const colmd12 = "col-md-12";
    const collg1 = "col-lg-1";
    const collg2 = "col-lg-2";
    const collg3 = "col-lg-3";
    const collg4 = "col-lg-4";
    const collg5 = "col-lg-5";
    const collg6 = "col-lg-6";
    const collg7 = "col-lg-7";
    const collg8 = "col-lg-8";
    const collg9 = "col-lg-9";
    const collg10 = "col-lg-10";
    const collg11 = "col-lg-11";
    const collg12 = "col-lg-12";

    //---------------------------------------ICON Class--------------------------------------------//
    const faCheck = "fa-check";
    const faClose = "fa-close";
    const faLongArrowUp = "fa-long-arrow-up";
    const faLongArrowDown = "fa-long-arrow-down";
    const faShareAlt = "fa-share-alt";
    const faEdit = "fa-edit";
    const faEye = "fa-eye";
    const faLink = "fa-link";

    //---------------------------------------颜色样式--------------------------------------------//
    const textPrimary   = "text-primary";
    const textDefault   = "text-default";
    const textSuccess   = "text-success";
    const textInfo      = "text-info";
    const textDanger    = "text-danger";

    //---------------------------------------Button 按钮类型--------------------------------------------//
    const btnTypeReset      = "reset";
    const btnTypeSubmit     = "submit";
    const btnTypeDefault    = "button";

    //---------------------------------------Button 按钮颜色样式--------------------------------------------//
    const btnStylePrimary = "btn-primary";
    const btnStyleDefault = "btn-default";
    const btnStyleSuccess = "btn-success";
    const btnStyleInfo = "btn-info";
    const btnStyleDanger = "btn-danger";

    //---------------------------------------Button 按钮大小--------------------------------------------//
    // Large .btn-lg	Small .btn-sm	X-Small .btn-xs	Flat .btn-flat
    const btnSizeLg = "btn-lg";
    const btnSizeSm = "btn-sm";
    const btnSizeXs = "btn-xs";

    /**
     * 返回给定常量名的常量值
     * @param $const
     * @return mixed
     */
    public static function getConstant( $const ) {
        return constant( "self::{$const}" );
    }


}